home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 12 / 012.d81 / pps #29 < prev    next >
Text File  |  2022-08-26  |  1KB  |  98 lines

  1.  
  2.   PEEKs, POKEs, and SYSes -- Part 29
  3.     -- continued from Part 28 --
  4.  
  5.  
  6.  
  7.  
  8.   To tell the truth, not much of what
  9.  
  10. we have covered here is very useful
  11.  
  12. to a BASIC programmer.  What WOULD
  13.  
  14. be useful is a machine language
  15.  
  16. program that would make use of all
  17.  
  18. this knowledge and print out the
  19.  
  20. values of all your array variables
  21.  
  22. on demand.  Well, we nice folks at
  23.  
  24. LOADSTAR couldn't resist writing just
  25.  
  26. such a tool and tacking it onto the
  27.  
  28. VARPRINT program we gave you last
  29.  
  30. month.  So this month, look in the
  31.  
  32. directory for ALLVARP.ML.
  33.  
  34.  
  35.   To use ALLVARP.ML, do this:
  36.  
  37.  
  38. LOAD "ALLVARP.ML",8,1
  39. NEW
  40.  
  41.  
  42.   Write, load, or run your own BASIC
  43.  
  44. program, interrupting it when you want
  45.  
  46. to look at the variables.
  47.  
  48.   To display the variables, including
  49.  
  50. arrays, simply enter SYS 49664.
  51.  
  52.   You can include the SYS anywhere
  53.  
  54. in your program, too.  This will allow
  55.  
  56. you to monitor variable values as
  57.  
  58. the program executes.  For example,
  59.  
  60.  1 DIM AB(1,2), CD%(3), EF$(2)
  61.  2 REM REST OF YOUR PROGRAM
  62.  3 :
  63.  4 :
  64.  : :
  65.  : :
  66. 100 SYS 49664: REM PRINT VARIABLES
  67. 110 REM  CONTINUE YOUR PROGRAM
  68. 120 :
  69.  :  :
  70.  :  :
  71.  
  72.  
  73.   Remember, you can also send your
  74.  
  75. list to the printer by using the
  76.  
  77. following in a program or in immediate
  78.  
  79. mode:
  80.  
  81.   OPEN4,4:CMD4:SYS49664
  82.   PRINT#4:CLOSE4
  83.  
  84.  
  85.   Hope you have learned something!
  86.  
  87. Good luck!
  88.  
  89. ---------< end of article >-----------
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.